package com.baitu.consumer.controller;

import com.baitu.common.api.rpc.MingXing;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TestController {

    @DubboReference
    public MingXing mingXingimpl;

    @RequestMapping("ceshi")
    @ResponseBody
    public String Test01(){
        if(mingXingimpl==null){
            System.out.println("没东西");
        }else{
            return mingXingimpl.biaoYan();
        }
        return "没完成调用";
    }
}
